package com.liujing.chapter2.exercise;

/**
 * 修改前一个联系，将DataOnly中的数据在main()方法中赋值并打印出来
 */
public class E05_DataOnly2 {
    int i;
    double d;
    boolean b;

    public static void main(String[] args) {
        E04_DataOnly d = new E04_DataOnly();
        d.i = 47;
        d.d = 1.1;
        d.b = false;
        System.out.println("i: " + d.i);
        System.out.println("d: " + d.d);
        System.out.println("b: " + d.b);
    }
}
